package com.fadadianqi.logistics.admin.net.handler;


import com.fadadianqi.logistics.admin.net.ChannelHandler;
import com.fadadianqi.logistics.admin.net.Session;
import com.fadadianqi.logistics.admin.net.packet.CloseConnectionPacket;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class CloseConnectionHandler implements ChannelHandler<CloseConnectionPacket> {

    private static final Log log = LogFactory.getLog(CloseConnectionHandler.class);

    @Override
    public void process(CloseConnectionPacket packet) throws Exception {
        log.debug("process(CloseConnectionPacket packet)");
        Session session = packet.getSession();
        session.close();
    }

}
